package cn.lyvust.level;

/**
 * Description:Java四种访问修饰符
 * date: 2021-4-6 22:42
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class SubPermission extends Permission{
    public void permissionTest(){
        // public, protected, default function and variable can be used
//        System.out.println("this is a private value:" +  this.privateValue);
        System.out.println("this is a default value:" +  this.defaultValue);
        System.out.println("this is a public value:" + this.publicValue);
        System.out.println("this is a protected value:" + this.protectedValue);

        this.publicFunc();
        this.protectedFunc();
        this.defaultFunc();
    }

    public static void main(String[] args) {
        SubPermission sp = new SubPermission();
        sp.permissionTest();
    }
}
